package com.jd.dl.pojo;

import java.util.Date;

import com.googlecode.jsonplugin.annotations.JSON;
import com.opensymphony.xwork2.conversion.annotations.Conversion;
import com.opensymphony.xwork2.conversion.annotations.TypeConversion;

public class Task implements java.io.Serializable {

	private static final long serialVersionUID = -8353116080579228324L;

	private Long taskId;
	private String taskName;
	private String taskAddress;
	private Dictionary towerType;
	private Date startTime;
	private Date endTime;
	private Double lat;
	private Double lon;
	private Dictionary taskStatus;
	private String taskDetails;
	private User user;
	private Double arrivedLat;
	private Double arrivedLon;

	public Task() {
		
	}

	public Long getTaskId() {
		return taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getTaskAddress() {
		return taskAddress;
	}

	public void setTaskAddress(String taskAddress) {
		this.taskAddress = taskAddress;
	}
	@JSON(format="yyyy-MM-dd HH:mm:ss")
	@TypeConversion(converter="com.jd.dl.web.util.DateConverter")
	public Date getStartTime() {
		return startTime;
	}
	@TypeConversion(converter="com.jd.dl.web.util.DateConverter")
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	@JSON(format="yyyy-MM-dd HH:mm:ss")
	@TypeConversion(converter="com.jd.dl.web.util.DateConverter")
	public Date getEndTime() {
		return endTime;
	}
	@TypeConversion(converter="com.jd.dl.web.util.DateConverter")
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLon() {
		return lon;
	}

	public void setLon(Double lon) {
		this.lon = lon;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getTaskDetails() {
		return taskDetails;
	}

	public void setTaskDetails(String taskDetails) {
		this.taskDetails = taskDetails;
	}

	public Dictionary getTowerType() {
		return towerType;
	}

	public void setTowerType(Dictionary towerType) {
		this.towerType = towerType;
	}

	public Dictionary getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(Dictionary taskStatus) {
		this.taskStatus = taskStatus;
	}

	public Double getArrivedLat() {
		return arrivedLat;
	}

	public void setArrivedLat(Double arrivedLat) {
		this.arrivedLat = arrivedLat;
	}

	public Double getArrivedLon() {
		return arrivedLon;
	}

	public void setArrivedLon(Double arrivedLon) {
		this.arrivedLon = arrivedLon;
	}
	
	

}